<div id="wrapper-slide">
    <div class="slider-wrapper theme-default">
        <div id="slider" class="nivoSlider">
            <?
                $q = $db->query("SELECT a.* FROM gallery AS a, gallery_menu AS b WHERE a.cat = b.id AND b.cat = 'slide' AND a.hien_thi = 1 AND b.hien_thi = 1 AND a.hinh <> 'no' ORDER BY rand() DESC");
                while ($r = $db->fetch($q)) {
            ?>
                <img src="/uploads/gal/slide_<?php echo $r['hinh']?>" title='<div class="container"><?php echo $r['chu_thich']?></div>' />
            <? 
                }
            ?>
        </div>
        <div id="htmlcaption" class="nivo-html-caption desc-slide"></div>
    </div>
</div>
<!-- 
<div id="wrapper-slide">
    <div class="main-image-slide"></div>
    <div class="navbars-slide">
        <div class="container">
            <a href="#" class="btn-prev-slide"></a>
            <div class="desc-slide">Khach san chung toi voi thiet ke hien dai, doc dao cung he thong phong hien dai, rong rai va dat chuan quoc te</div>
            <a href="#" class="btn-next-slide"></a>
            <div class="clearfix"></div>
        </div>
    </div>
</div>

<div class="slide_wrapper">
    <div class="wt-rotator">
        <img id="bg-img" src="/images/spacer.png"/>
        <a href="#"><img id="main-img" src="/images/spacer.png"/></a>
        <div class="preloader"><img src="/images/ajax-loader.gif"/></div>
        <div class="c-panel">
            <div class="thumbnails">
                <ul>
                <?
                    $q = $db->query("SELECT a.* FROM gallery AS a, gallery_menu AS b WHERE a.cat = b.id AND b.cat = 'slide' AND a.hien_thi = 1 AND b.hien_thi = 1 AND a.hinh <> 'no' ORDER BY rand() DESC");
                    while ($r = $db->fetch($q)) {
                ?>
                    <li>
                        <a rel="example_group" href="/uploads/gal/slide_<?php echo $r['hinh']?>" title="<?php echo $r['ten']?>"></a>
                    </li>
                <? 
                    }
                ?>
                </ul>
            </div>
        </div>
    </div>
</div>
 -->
